local len = string.len
local wait = coroutine.wait
local start = coroutine.start

local luaBehaviour;
local transform;
local gameObject;

ChatMainView = BaseView:New('ChatMainView');
local this = ChatMainView;

--启动事件--
function ChatMainView.Awake(obj)
	gameObject = obj;
	transform = obj.transform;
    luaBehaviour = transform:GetComponent(typeof(LuaBehaviour));
    
    this.netWorkGO = transform:Find('NetWorkManager').gameObject;

	this.SendBtn = transform:Find('SendBtn'):GetComponent(typeof(Button));
	
	luaBehaviour:AddClick(this.BtnKaiche, this.OnClick);
	logWarn("Start lua--->>"..gameObject.name);
end

function ChatMainView.OnEnable()
	SoundManager.PlayBackSound(SoundName.BgmLogin);		--播放登录音乐
end

function ChatMainView.OnDisable()
end

local Switch = 
{
	SendBtn = function()
        
        
	end,
}

--单击事件--
function ChatMainView.OnClick(go)
	log("OnClick---->>>"..go.name);
	local func = Switch[go.name];
	if func then func() end;
end

--单击事件--
function ChatMainView.OnDestroy()
	logWarn("OnDestroy---->>>");
end

--通知列表--
this.NotifyList = 
{
}

return this;